package com.example.demo3;

import org.springframework.context.ApplicationEvent;

/**
 * 定义事件
 */

public class RequestEvent extends ApplicationEvent {

    private String name;

    private String age;

    public RequestEvent(Object source) {
        super(source);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "RequestEvent{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
